package cn.yaoud.salus.oms.alarm.feishu.bot.msg;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 文本消息
 *
 * @author 唐彪
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class TextMsg extends Msg {
    private TextContent content;

    public TextMsg(String text) {
        this.content = new TextContent();
        content.setText(text);
        setMsgType(MsgTypeEnum.TEXT.getType());
    }
}
